package com.zy.teacherSide.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zy.teacherSide.entity.Classroom;

import java.util.List;

/**
 * @author 29787
 */
public interface IClassroomService extends IService<Classroom> {

    /**
     * 根据教师id查询班级信息
     * @param teacherId
     * @return List<Classroom>
     */
    List<Classroom> getAllClassroom(Integer teacherId);

    /**
     * 根据教师id和班级名称查重
     * @param classroomName
     * @param teacherId
     * @return Classroom
     */
    Classroom getClassroomByNameAndTeacherId(String classroomName,Integer teacherId);

    /**
     * 根据教师id查询班级信息
     * @param classroomId
     * @return Classroom
     */
    Classroom getClassroomByClassroomId(Integer classroomId);

}
